package com.baizhi.luoht.controller;/**
 * @Author:luoht
 * @Description：
 * @Date：Create in 14:33 2018/11/9
 */

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.IOException;

/**
 * @program: SpringMVC
 * @description:
 * @author: luoht
 * @create: 2018-11-09 14:33
 **/
@Controller
@RequestMapping("/user")
public class ExcContrller {

    @RequestMapping("/meth1")
    public String method1(Integer id) throws IOException {
        if (id != 100){
            throw new RuntimeException("~~~RUNNING~~~~~~");
        } else {
            throw new IOException("~~~~~~IO~~~~~~~");

        }
        


    }


}
